$("#subBtn").click(function () {
    var data = $("#data").val();
    if (typeof (data) === "undefined" || data === "") {
        layer.msg("请输入加款信息");
        return false;
    }
    var applyType = $("#addType").val();
    if (typeof (applyType) === "undefined" || data === "") {
        layer.msg("未选择操作类型");
        return;
    }
    var tipMsg = "";
    if (applyType === "RAKEBACK") {
        tipMsg = "返佣";
    } else if (applyType === "fixSettle") {
        tipMsg = "补结算";
    } else if (applyType === "fixDifference") {
        tipMsg = "补差额";
    } else if (applyType === "fixServicePrice") {
        tipMsg = "补手续费";
    }else if (applyType === "manualRefund") {
        tipMsg = "手动退款";
    }
    $.confirm({
        title: '确认!',
        content: '确定操作' + tipMsg + '？',
        confirm: function () {
            $.ajax({
                type: "POST",
                url: "supplyCard/newBatchSubmitUserAddMoneyApply",
                data: $("#uploadForm").serialize(),
                dataType: "json",
                success: function (data) {
                    if (data.success) {
                        layer.msg(data.message);
                    } else {
                        layer.msg(data.message)
                    }
                },
                beforeSend: function () {
                }
            });
        },
        cancel: function () {

        }

    })

})